import { SystemUserTree, SystemUserQuery, SystemUserDelete,SystemUserResetPassword } from '@/services/api'
import { request, METHOD } from '@/utils/request'

/**
 * 树
 */
export function tree() {
    return request(SystemUserTree, METHOD.GET, {})
}

/**
 * 列表
 */
export function query(param) {
    return request(SystemUserQuery, METHOD.POST, param)
}

/**
 * 删除
 */
export async function del(param) {
    return request(SystemUserDelete, METHOD.POST, param)
}

/**
 * 重置某人密码
 */
 export async function resetPassword(param) {
    return request(SystemUserResetPassword, METHOD.PUT, param)
}
export default {
    tree,
    query,
    del,
    resetPassword
}